package codegen.builders;

import java.io.BufferedWriter;
import java.io.IOException;

public class CodegenConstructor extends CodegenMethodBase {

	public CodegenConstructor(CodegenType parent, Class<?> constructorForClass) {
		super(parent, constructorForClass.getSimpleName());
		returns = "";
	}

	@Override
	public void write(BufferedWriter fw) throws IOException {
		doWrite(parent.getSimpleName(), fw);
	}

	public boolean isDefault() {
		return parameters.size() == 0;
	}

}
